package com.internetCafes.spms.web.customer.common.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * 匹配工具类
 */
public class MatchUtil {

    /**
     * 去除字符串中的空格、回车、换行符、制表符
     */
    public static String replaceBlank(String str) {
        String dest = "";
        if (str != null) {
            Pattern pattern = Pattern.compile("\\s*|\t|\r|\n");
            Matcher matcher = pattern.matcher(str);
            dest = matcher.replaceAll("");
        }
        return dest;
    }
}
